<%= form_for([:iblog, @article]) do |article_form| %>
  <% if @article.errors.any? %>
  <div id="errorExplanation">
    <h2><%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved:</h2>
    <ul>
    <% @article.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
  <% end %>

  <div class="field">
    <%= article_form.label :title %><br />
    <%= article_form.text_field :title %>
  </div>
  <div class="field">
    <%= article_form.label :author %><br />
    <%= article_form.text_field :author %>
  </div>
  <div class="field">
    <%= article_form.label :short_content %><br />
    <%= article_form.text_area :short_content %>
  </div>
  <div class="field">
    <%= article_form.label :content_html %><br />
    <%= article_form.text_area :content_html %>
  </div>
  <div class="actions">
    <%= article_form.submit %>
  </div>
<% end %>